package com.yex.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.yex.common.utils.PageUtils;
import com.yex.dao.WalletLogDao;
import com.yex.entity.WalletLogEntity;
import com.yex.service.WalletLogService;
import com.yex.utils.Query;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("walletLogService")
public class WalletLogServiceImpl extends ServiceImpl<WalletLogDao, WalletLogEntity> implements WalletLogService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<WalletLogEntity> page = this.selectPage(
                new Query<WalletLogEntity>(params).getPage(),
                new EntityWrapper<WalletLogEntity>()
        );

        return new PageUtils(page);
    }

}
